package org.dromara.xhlj.domain.bo;

import org.dromara.xhlj.domain.XhljGoodsRedemptionRecords;
import lombok.*;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.*;
import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;
import java.io.Serial;
import java.io.Serializable;

/**
 * 商品兑换记录业务对象 xhlj_goods_redemption_records
 *
 * @author yf
 * @date 2024-07-28
 */
@Data
@AutoMapper(target = XhljGoodsRedemptionRecords.class, reverseConvertGenerate = false)
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class XhljGoodsRedemptionRecordsBo extends BaseEntity {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 兑换记录ID
     */
    @NotNull(message = "兑换记录ID不能为空", groups = {EditGroup.class})
    private Integer recordId;
    /**
     * 兑换所用积分
     */
    private BigDecimal redemptionPoints;
    /**
     * wx_user（兑换用户）
     */
     private Integer createBy;
    /**
     * 兑换的商品ID
     */
    private Integer goodsId;
    /**
     * 兑换所用货币金额
     */
    private BigDecimal redemptionCurrency;
    /**
     * 兑换日期和时间
     */
    private Date redemptionDate;
    /**
     * 兑换状态（0=成功，1=失败，2=取消）
     */
    private String status;
}
